package org.luxor.cloud.portal.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.luxor.cloud.portal.entity.ApplicationDetailsEntity;
import org.luxor.cloud.portal.mapper.ApplicationDetailsMapper;
import org.luxor.cloud.portal.service.IApplicationDetailsService;
import org.luxor.commons.core.utils.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 应用详情
 *
 * @author administrator @date 2020-10-29 14:22:21
 */
@Service("applicationDetailsService")
public class ApplicationDetailsServiceImpl extends ServiceImpl<ApplicationDetailsMapper, ApplicationDetailsEntity> implements IApplicationDetailsService {

    @Override
    public IPage<ApplicationDetailsEntity> page(IPage<ApplicationDetailsEntity> page, Map query) {
        ApplicationDetailsEntity queryEntity = BeanUtils.toObject(ApplicationDetailsEntity.class, query);
        return super.page(page, Wrappers.query(queryEntity));
    }
}
